/** ---用户管理--- */
export const user = [
  {
    path: '/enterpriseUserList',
    name: 'enterpriseUserList',
    component: () =>
      import('@/pages/userManagement/enterpriseUser/enterpriseUserList.vue'),
    meta: {
      title: '用户管理+企业用户',
      permission: 'enterpriseUserList.see',
    },
  },
  {
    path: '/enterpriseUserDetail',
    name: 'enterpriseUserDetail',
    component: () =>
      import('@/pages/userManagement/enterpriseUser/enterpriseUserDetail.vue'),
    meta: {
      title: '用户管理+企业用户/详情',
      permission: 'enterpriseUserList.see',
    },
  },
  {
    path: '/enterpriseUserAdd',
    name: 'enterpriseUserAdd',
    component: () =>
      import('@/pages/userManagement/enterpriseUser/enterpriseUserAdd.vue'),
    meta: {
      title: '用户管理+企业用户/新增',
      permission: 'enterpriseUserList.add',
    },
  },
  {
    path: '/enterpriseUserEdit',
    name: 'enterpriseUserEdit',
    component: () =>
      import('@/pages/userManagement/enterpriseUser/enterpriseUserAdd.vue'),
    meta: {
      title: '用户管理+企业用户/修改',
      permission: 'enterpriseUserList.edit',
    },
  },
  {
    path: '/enterpriseUserWallet',
    name: 'enterpriseUserWallet',
    component: () =>
      import('@/pages/userManagement/enterpriseUser/enterpriseUserWallet.vue'),
    meta: {
      title: '用户管理+企业用户/用户钱包',
      permission: 'enterpriseUserList.wallet',
    },
  },
  //非企业用户
  {
    path: '/noEnterpriseUserList',
    name: 'noEnterpriseUserList',
    component: () =>
      import(
        '@/pages/userManagement/noEnterpriseUser/noEnterpriseUserList.vue'
      ),
    meta: {
      title: '用户管理+非企业用户',
      permission: 'noEnterpriseUserList.see',
    },
  },
  {
    path: '/noEnterpriseUserDetail',
    name: 'noEnterpriseUserDetail',
    component: () =>
      import('@/pages/userManagement/enterpriseUser/enterpriseUserDetail.vue'),
    meta: {
      title: '用户管理+非企业用户/详情',
      permission: 'noEnterpriseUserList.see',
    },
  },
  {
    path: '/noEnterpriseUserAdd',
    name: 'noEnterpriseUserAdd',
    component: () =>
      import('@/pages/userManagement/noEnterpriseUser/noEnterpriseUserAdd.vue'),
    meta: {
      title: '用户管理+非企业用户/新增',
      permission: 'noEnterpriseUserList.add',
    },
  },
  {
    path: '/noEnterpriseUserEdit',
    name: 'noEnterpriseUserEdit',
    component: () =>
      import('@/pages/userManagement/noEnterpriseUser/noEnterpriseUserAdd.vue'),
    meta: {
      title: '用户管理+非企业用户/修改',
      permission: 'noEnterpriseUserList.edit',
    },
  },
  {
    path: '/noEnterpriseUserWallet',
    name: 'noEnterpriseUserWallet',
    component: () =>
      import('@/pages/userManagement/enterpriseUser/enterpriseUserWallet.vue'),
    meta: {
      title: '用户管理+非企业用户/用户钱包',
      permission: 'noEnterpriseUserList.wallet',
    },
  },
  //补贴管理
  {
    path: '/subsidyManagementList',
    name: 'subsidyManagementList',
    component: () =>
      import(
        '@/pages/userManagement/subsidyManagement/subsidyManagementList.vue'
      ),
    meta: {
      title: '用户管理+补贴管理',
      permission: 'subsidyManagementList.see',
    },
  },
  {
    path: '/subsidyManagementAdd',
    name: 'subsidyManagementAdd',
    component: () =>
      import(
        '@/pages/userManagement/subsidyManagement/subsidyManagementAdd.vue'
      ),
    meta: {
      title: '用户管理+补贴管理/新增',
      permission: 'subsidyManagementList.add',
    },
  },
  {
    path: '/subsidyManagementEdit',
    name: 'subsidyManagementEdit',
    component: () =>
      import(
        '@/pages/userManagement/subsidyManagement/subsidyManagementAdd.vue'
      ),
    meta: {
      title: '用户管理+补贴管理/修改',
      permission: 'subsidyManagementList.edit',
    },
  },
  {
    path: '/subsidyManagementDetail',
    name: 'subsidyManagementDetail',
    component: () =>
      import(
        '@/pages/userManagement/subsidyManagement/subsidyManagementDetail.vue'
      ),
    meta: {
      title: '用户管理+补贴管理/详情',
      permission: 'subsidyManagementList.see',
    },
  },
  {
    path: '/userRealTimeOrderList',
    name: 'userRealTimeOrderList',
    component: () =>
      import('@/pages/orderManagement/realTimeOrder/userRealTimeOrderList.vue'),
    meta: {
      title: '用户管理+订单管理+实时订单',
      permission: 'userRealTimeOrderList.see',
    },
  },
  {
    path: '/userRealTimeOrderDetail',
    name: 'userRealTimeOrderDetail',
    component: () =>
      import('@/pages/orderManagement/realTimeOrder/realTimeOrderDetail.vue'),
    meta: {
      title: '用户管理+订单管理+实时订单/详情',
      permission: 'userRealTimeOrderList.see',
    },
  },
  {
    path: '/userRealOccupyOrderDetail',
    name: 'userRealOccupyOrderDetail',
    component: () =>
      import('@/pages/orderManagement/realTimeOrder/occupyOrderDetail.vue'),
    meta: {
      title: '用户管理+订单管理+实时占用订单/详情',
      permission: 'userRealTimeOrderList.see',
    },
  },
  {
    path: '/userOccupyOrderStop',
    name: 'userOccupyOrderStop',
    component: () =>
      import('@/pages/orderManagement/realTimeOrder/occupyOrderStop.vue'),
    meta: {
      title: '用户管理+订单管理+实时占用订单/手动结束',
      permission: 'realTimeOrderList.see',
    },
  },
  {
    path: '/userHistoricalOrderList',
    name: 'userHistoricalOrderList',
    component: () =>
      import('@/pages/orderManagement/historicalOrder/userHistoricalOrderList.vue'),
    meta: {
      title: '用户管理+订单管理+历史订单',
      permission: 'userHistoricalOrderList.see',
    },
  },
  {
    path: '/userHistoricalOrderDetail',
    name: 'userHistoricalOrderDetail',
    component: () =>
      import('@/pages/orderManagement/historicalOrder/historicalOrderDetail.vue'),
    meta: {
      title: '用户管理+订单管理+历史订单/详情',
      permission: 'userHistoricalOrderList.see',
    },
  },
  {
    path: '/userOccupyOrderDetail',
    name: 'userOccupyOrderDetail',
    component: () =>
      import('@/pages/orderManagement/historicalOrder/occupyOrderDetail.vue'),
    meta: {
      title: '用户管理+订单管理+占用订单/详情',
      permission: 'userHistoricalOrderList.see',
    },
  },
  //售后
  {
    path: '/afterSalesInfoList',
    name: 'afterSalesInfoList',
    component: () =>
      import('@/pages/userManagement/afterSalesInfo/afterSalesInfoList.vue'),
    meta: {
      title: '用户管理+售后人员管理',
      permission: 'afterSalesInfoList.see',
    },
  },
  {
    path: '/afterSalesInfoAdd',
    name: 'afterSalesInfoAdd',
    component: () =>
      import('@/pages/userManagement/afterSalesInfo/afterSalesInfoAdd.vue'),
    meta: {
      title: '用户管理+售后人员管理/新增',
      permission: 'afterSalesInfoList.add',
    },
  },
  {
    path: '/afterSalesInfoEdit',
    name: 'afterSalesInfoEdit',
    component: () =>
      import('@/pages/userManagement/afterSalesInfo/afterSalesInfoAdd.vue'),
    meta: {
      title: '用户管理+售后人员管理/修改',
      permission: 'afterSalesInfoList.edit',
    },
  },
  {
    path: '/afterSalesRecordList',
    name: 'afterSalesRecordList',
    component: () =>
      import('@/pages/userManagement/afterSalesRecord/afterSalesRecordList.vue'),
    meta: {
      title: '用户管理+授权码申请记录',
      permission: 'afterSalesRecord.see',
    },
  },
];
